//
//  ServerDetailController.h
//  jboss-admin
//
//  Created by Christos Vasilakis on 22/06/2010.
//  Copyright 2010 All rights reserved.
//

#import <Foundation/Foundation.h>

@class JBossServer;

#define kNumberOfEditableRows		 4
#define kJBossServerNameRowIndex     0
#define kJBossServerHostnameRowIndex 1
#define kJBossServerUsernameRowIndex 2
#define kJBossServerPasswordRowIndex 3

#define kNonEditableTextColor  [UIColor colorWithRed:.318 green:0.4 blue:.569 alpha:1.0]

#define kLabelTag 4096

@interface ServerDetailController : UITableViewController <UITextFieldDelegate> {
	JBossServer *server;
	NSArray *fieldLabels;
	NSMutableDictionary *tempValues;
	UITextField *textFieldBeingEdited;
	NSMutableArray *list;
}

@property (nonatomic, retain) JBossServer *server;
@property (nonatomic, retain) NSArray *fieldLabels;
@property (nonatomic, retain) NSMutableDictionary *tempValues;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;
@property (nonatomic, retain) NSMutableArray *list;

- (IBAction)cancel:(id)sender;
- (IBAction)save:(id)sender;
- (void)textFieldDone:(id)sender;

@end
